import request from '@/utils/request'

// 查询列表
export function listExpress(query) {
  return request({
    url: '/yanjing/company/express/list',
    method: 'get',
    params: query
  })
}

// 查询列表
export function queryPageByParam(query) {
  return request({
    url: '/yanjing/company/express/queryPageByParam',
    method: 'get',
    params: query
  })
}


// 查询详细
export function getExpress(expressId) {
  return request({
    url: '/yanjing/company/express/' + expressId,
    method: 'get'
  })
}

// 新增
export function addExpress(data) {
  return request({
    url: '/yanjing/company/express',
    method: 'post',
    data: data
  })
}

// 修改
export function updateExpress(data) {
  return request({
    url: '/yanjing/company/express',
    method: 'put',
    data: data
  })
}

// 删除
export function delExpress(expressId) {
  return request({
    url: '/yanjing/company/express/' + expressId,
    method: 'delete'
  })
}
